package com.fiap.solutions.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;

@Entity
@SequenceGenerator(sequenceName = "SEQ_ITEM", name = "CLIENTE_ORACLE", allocationSize = 1)
public class ItemPedido implements Serializable {
	private static final long serialVersionUID = -6886673042482493830L;

	@Id
	@GeneratedValue(generator = "CLIENTE_ORACLE", strategy = GenerationType.SEQUENCE)
	private int codigo;

	@Column(nullable = false)
	private String descricao;
	
	@Column(nullable = false)
	private int qtde;
	
	@Column(nullable = false)
	private double valor;

	public int getCodigo() {
		return codigo;
	}

	public void setCodigo(int codigo) {
		this.codigo = codigo;
	}

	public String getDescricao() {
		return descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	public int getQtde() {
		return qtde;
	}

	public void setQtde(int qtde) {
		this.qtde = qtde;
	}

	public double getValor() {
		return valor;
	}

	public void setValor(double valor) {
		this.valor = valor;
	}


}
